package com.cn.bopu.common.upms.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description:应用权限表（菜单级）
 * @author 史绍波
 * @since 2020-01-09
 */
@ApiModel(value ="应用权限表（菜单级）")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_application")
public class SysApplication implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    @ApiModelProperty(value = "父级应用ID")
    @TableField("parent_id")
    private String parentId;
    @ApiModelProperty(value = "应用名称")
    @TableField("name")
    private String name;
    @ApiModelProperty(value = "应用代码（命名方式：level1_level2_level3）")
    @TableField("code")
    private String code;
    @ApiModelProperty(value = "应用图标")
    @TableField("logo")
    private String logo;
    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;
    @ApiModelProperty(value = "应用等级")
    @TableField("level")
    private Integer level;
    @ApiModelProperty(value = "应用地址")
    @TableField("url")
    private String url;
    @ApiModelProperty(value = "有效状态：0无效，1有效")
    @TableField("state")
    private String state;
    @ApiModelProperty(value = "创建时间戳")
    @TableField("create_timestamp")
    private LocalDateTime createTimestamp;
    @ApiModelProperty(value = "更新时间戳")
    @TableField("update_timestamp")
    private LocalDateTime updateTimestamp;


    public static final String ID = "id";

    public static final String PARENT_ID = "parent_id";

    public static final String NAME = "name";

    public static final String CODE = "code";

    public static final String LOGO = "logo";

    public static final String SORT = "sort";

    public static final String LEVEL = "level";

    public static final String URL = "url";

    public static final String STATE = "state";

    public static final String CREATE_TIMESTAMP = "create_timestamp";

    public static final String UPDATE_TIMESTAMP = "update_timestamp";

}
